<?php
/** 
 * @file    header.php - Handles all php header information
 *
 * @author  EnsconcE
 * @version Aug-15-2010 
 * @todo    - This file needs to be the backbone of the php codem the main goal is to minimize php coding by reusing code
 *          
 */
 
if (!session_id()) session_start();

include_once(getcwd()."/includes/functions.php");

if (!is_file(getcwd()."/includes/connection.php") || !is_file(getcwd()."/includes/settings.php")) {
	echo "Jukebox not <a href='setup.php'>setup</a>"; 
	die;
}
else {
	include_once(getcwd()."/includes/settings.php"); 
	include_once(getcwd()."/includes/connection.php");
}

include_once(getcwd()."/includes/login_handler.php");
?>